package com.juzi.wopu.domain;

import java.util.HashSet;
import java.util.Set;

public class Employee {
	private Long id; // 员工的编号（自增长）
	
	private String username;// 用户名
	
	private String password;// 密码

	private String email;// 邮箱
	
	private String headImage;// 头像
	
	private Integer age;// 年龄
	
	/*private Department department;// 所属部门
*/	
	private Set<Role> roles=new HashSet<Role>();// 员工和角色的多对多关系
	
	private String company;// 所属商铺
	
	public Employee(){}
	
	public Employee(Long id) {
		this.id=id;
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}



	public String getHeadImage() {
		return headImage;
	}

	public void setHeadImage(String headImage) {
		this.headImage = headImage;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	/*public Department getDepartment() {
		return department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}*/
	
	public Set<Role> getRoles() {
		return roles;
	}

	public void setRoles(Set<Role> roles) {
		this.roles = roles;
	}

	@Override
	public String toString() {
		return "Employee [id=" + id + ", username=" + username + ", password=" + password + ", email=" + email
				+ ", headImage=" + headImage + ", age=" + age + "]";
	}
}
